<template>
  <van-field
    @input="myChageInput"
    :value="value"
    :data-name="name"
    required
    clearable
    :label="label"
    :placeholder="placeholder"
    :type="type"
  />
</template>

<script>
export default {
  prop: {
    value: [String, Number],
    label: String,
    icon: String,
    placeholder: String,
    name: String,
    type: String,
   
  },
  model: {
    prop: "value",
    event: "myinput",
  },
  methods: {
    myChageInput(e) {
      this.$emit("myinput", e.detail);
    },
  },
};
</script>

<style lang="scss"></style>